

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body{
	font-family:Arial, Helvetica, sans-serif; font-size:12px; 
}
</style>

</head>

<body>
<?php if($this->check == true){?>
<?php 
ob_flush();
ob_start();
header("Expires: Mon, 26 Jul 1970 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

?>

<h1>Your Unconfirmed Repair Bonus Record<br />
  Staff Name: Tszyu Poon 	

</h1>
<form action = "" method = "post">

<div id = 'table1' style = "height:500px; width:600px; padding:10px;">
<table width="600" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <th align="left" scope="col" colspan = "2"><h2><?php echo $this->dateBegin;?> to <?php echo $this->dateEnd;?></h2><input type = "hidden" name = "date_begin" value = "<?php echo $this->dateBegin;?>"></input>
    																												  <input type = "hidden" name = "date_end" value = "<?php echo $this->dateEnd;?>"></input></th>
	
  </tr>
  <tr>
    <td align="center" valign="middle" style=" border-top:#000 solid 2px;" colspan = "2">Gross Pay:<?php echo $this->total;?><input type = "hidden" name = "totalProfit" value = "<?php echo $this->total;?>"></input></td>
  </tr>  
</table>
<br />

</div>

<div style="padding:0px; margin-top:30px; height:250px; width:600px;">


<table width="500px" border="0" cellspacing="0" cellpadding="10">
	<tr>
		<td>Payslip for : Tszyu Poon</td>
	</tr>
	<tr>
		<td>Pay period from:<?php echo $this->dateBegin;?> To:<?php echo $this->dateEnd;?></td>
	</tr>
	<tr>
		<td>Gross Pay:$<?php echo $this->total;?></td>
	</tr>


</table>

<br />
<br />

I,___________________________confirmed all above information are correct<br/><br/>
Signature:____________________<br/>
<br/>
Date:________________________<br/><br/>
<hr />
<?php echo $this->comm;?></div>
<?php ob_end_flush();?>
<input type = "submit" name = "confirm" value = "Confirm"></input>



</form>
<?php }else{?>
<form action = "" method = "post" enctype="multipart/form-data">
	<h1>Alex Bonus Step 3</h1>
    
    <h3>Please upload the olga confirmed excel</h3>
	<input type = 'file' name = 'last_file'  />
    <input type = 'submit' name = 'upFile' value = "Upload File" /><br/><br/>
</form>	
<?php }?>

</body>
<?php

$mailbody = "<html><body> ";
$mailbody .= ob_get_contents();

if(isset($_POST['send_email'])){
$mail = new Model_Emailshandler();

$mail->sendNormalEmail('payroll@phonecollection.com.au',"Alex Repair Bonus Payslip", $mailbody);
echo '<script language="javascript">';
echo 'alert("Email successfully sent")';
echo '</script>';

}
?>


</html>
